import React, { Component } from 'react';
import styles from './Button.module.css'

class Index extends Component {
    render() {
        return (
            <div className={styles.content}>
                button
                <button onClick={this.handleClick}>button</button>
                {/* <button onClick={() => { this.props.myRun() }}>button</button> */}
            </div>
        );
    }
    handleClick = () => {
        this.props.myRun('我是子组件传过来的参数')
    }
}

export default Index;
